package com.hxzy.service;

import com.github.pagehelper.PageInfo;
import com.hxzy.controller.admin.dictdata.req.DictDataReq;
import com.hxzy.entity.SysDictData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_dict_data(字典数据表)】的数据库操作Service
* @createDate 2023-06-28 16:38:45
*/
public interface SysDictDataService extends IService<SysDictData> {

    PageInfo<SysDictData> search(DictDataReq req);

    /**
     * 逻辑删除
     * @param ids
     * @return
     */
    boolean delete(Long[] ids);

    /**
     * 更新dict_type的值
     * @param dictType
     * @param dictType1
     * @return
     */
    boolean updateDictType(String dictType, String dictType1);

    /**
     * 查询所有未被禁用数据
     * @return
     */
    List<SysDictData> searchAllData();
}
